from paraview.simple import *

reader = OpenDataFile(
    'C:\Program Files\ParaView 5.11.0\examples\disk_out_ref.ex2')
Show()
Render()
ResetCamera()

pd = reader.PointData
print('Keys: ', pd.keys())

print('Comp Nos: ', pd["Pres"].GetNumberOfComponents())
print('Range:', pd["Pres"].GetRange())
print('Comp Nos', pd["V"].GetNumberOfComponents())

print('iter over arrays')

for ai in pd.values():
    print(ai.GetName(), ai.GetNumberOfComponents(), end=" ")
    for i in range(ai.GetNumberOfComponents()):
        print(ai.GetRange(i), end=" ")
    print()

input('input')
